
<!doctype html>
<html lang="zh-CN">
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>Bootstrap 101 Template</title>

  <!-- Bootstrap -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
        integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <link rel="stylesheet" href="css/pay.css">
</head>

<body class="body">


<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">温馨提示</h4>
      </div>
      <div class="modal-body">
        <p>1、未发货取消订单退款的,要扣除支付总金额的千分之八手续费。</p>
        <p> 2、已发货拒收退款的,扣除支付总金额的千分之八手续费和运费(机器50元,周边22元)。</p>
        <p>3、带正版系统的机型,系统激活后不支持7天无理由退货。</p>
        <p>4、质量问题7天内可无理由退换货,不用支付任何费用。</p>
        <p>5、质量问题超过7天但未超过15天,仅支持换货,不用支付任何费用。</p>
        <p>6、质量问题超过15天的用户,请到售后网点进行维修处理,不支持退换货。</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
      </div>
    </div>
  </div>
</div>





<div class="header">
  <div class="header_container">
    <img src="imag/logo.png" />
  </div>
</div>

<div class=" pay-body">
  <div class="payment-wrap">
    <div class="order-detail">
<form th:action="@{/api/alipay/page}" method="post">
      <div class="order-pay-money">
        <span class="order-detail-name">商品名：</span>

        <span>

            <em class="rmb  ns-text-color" th:each="pd:${pd}" th:if="${pd==1}">
                <i th:each="h:${spm}" th:text="${h}"/>
              <input  type="text"name="subject" style="display: none"  th:each="h:${spm}" th:value= "${h}">
            </em>
         <em class="rmb  ns-text-color" th:each="pd:${pd}" th:if="${pd==0}"><i>
             <i th:each="h,v:${spm}"  th:text="${v.current.cmmodityName}"/>
                <input type="text" style="display: none"  name="subject"  th:each="h,v:${spm}"  th:value="${h.cmmodityName}">
         </em>

        </span>
        <span class="order-detail-name">支付金额：</span>
        <span><em class="rmb  ns-text-color" ><i>￥
            <i th:each="h:${jiag}" th:text="${h}"></i>
              <input type="text" style="display: none" name="total" th:each="h:${jiag}"  th:value= "${h}">

        </em></span>
      </div>
      <div class="order-info">


        <p>订单关闭时间：<span>请尽快进行支付,订单会在
          <!-- <time class="close-time">08:53:21</time> -->
                            <time class="close-time time"><span class="hour">00</span>:<span
                                    class="minute">00</span>:<span class="second">00</span></time>
                            之后进行关闭
                        </span>
        </p>
      </div>
      <div class="pay-type row">
        <div class="col-xs-2   pay-type-title active" id="payOnline" onclick="onlinClick('payOnline')">
          <a href="javascript:;">在线支付</a>
        </div>

      </div>


      <div class="payment row">
        <button type="submit" class="payment-btn primary" id="pay">立即支付 </button>
      </div>
</form>
    </div>

  </div>
</div>




<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
        crossorigin="anonymous"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
        integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
        crossorigin="anonymous"></script>
<script src="node_modules/moment/moment.js"></script>
<script src="js/paypay.js"></script>
</body>

</html>